import request from '@/utils/request'

/**
 * 渡币流水列表
 * @param {Object} params 
 */
export function querybalancelog(params) {
  return request({
    url: '/system/balancelog/list',
    method: 'get',
    params: params
  })
}


/**
 * 渡币流水导出
 * @param {String} id 
 */
export function balancelogExport(data) {
  return request({
    url: '/system/balancelog/export',
    method: 'post',
    data: data
  })
}


/**
 * 渡币流水详情
 * @param {String} id 
 */
export function queryBalancelogDetail(id) {
  return request({
    url: '/system/balancelog/'+id,
    method: 'get'
  })
}

/**
 * 新增渡币流水
 * @param {Object} data 
 */
export function addBalancelog(data) {
  return request({
    url: '/system/balancelog',
    method: 'post',
    data: data
  })
}


/**
 * 编辑渡币流水
 * @param {Object} data 
 */
export function editBalancelog(data) {
  return request({
    url: '/system/balancelog',
    method: 'put',
    data: data
  })
}


/**
 * 删除渡币流水
 * @param {String} ids 
 */
export function deleteBalancelog(ids) {
  return request({
    url: '/system/balancelog/'+ids,
    method: 'delete',
    data: data
  })
}

